package com.go8.goods.service;

import java.util.List;
import com.go8.goods.pojo.Product;
import com.go8.goods.pojo.ProductDetail;
import com.go8.goods.pojo.ProductExt;
import com.go8.goods.pojo.Sku;

public interface ProductService {
	void add(Product product, String detail, Sku[] skus);
	
	List<Product> getProducts(int page, int size, Product product);
	
	ProductExt getProductBrandById(Long id);
	
	long getCount(Product p);
	
	void updatePartial(Product p);

	//获取spu信息
	Product getProductById(long id);

	//获取详情
	ProductDetail getDetailByProductId(long productId);

	//获取规格
	List<Sku> getSkusByProductId(long productId);

    void syncAll();
}
